package com.google.code.netbuilder.dal.providers;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;

public interface IGenericProvider <T, ID extends Serializable> {

    public void save(T entity) throws RuntimeException;
    
    public void update(T entity) throws RuntimeException;
 
    public void delete(T entity) throws RuntimeException;
 
    public List findAll(Class clazz) throws RuntimeException;
 
    public T findByID(Class clazz, Integer id) throws RuntimeException;
	
}
